package _09继承后变量和方法的访问特点;

public class Demo09 {
    public static void main(String[] args) {
        Son s = new Son();
        s.method(20);
    }

}

class Fa{
    int age = 100;

}

class Son extends Fa{
    int age = 50;

    public void method(int age){
        System.out.println(age);
        System.out.println(this.age);
        System.out.println(super.age);
    }
}